import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
// @ts-ignore
import { buildPlugin } from "./src/plugins/buildPlugin";

// @ts-ignore
import { devPlugin, getReplacer } from "./src/plugins/devPlugin";
import optimizer from "vite-plugin-optimizer";

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [optimizer(getReplacer()), devPlugin(), vue()],
    build: {
        rollupOptions: {
            plugins: [buildPlugin()],
        },
    },
});
